<%@ page pageEncoding="UTF-8"%>
<html>
<head>
	<title>添加部门</title>
</head>
<body>
	<h3>添加部门</h3>
<div style = "background: url(../images/menuBg.png) repeat fixed; height:420px">
	<form id="form">
		<div class="content_row">
			<span class="row"><label><font color ="red">*</font>&nbsp;部门名称</label><input type="text" name="name"/></span>
			<span class="row"><label><font color ="red">*</font>&nbsp;部门编号</label><input type="text" name="code"/></span>
			<span class="row"><label>上级部门</label><input  name="parentId" id="parentDept" value="0" style="width:144px"/></span>
		</div>
		<div class="content_row content_row_btn">
			<a href="javascript:void(0)" onclick="submitForm('/user/addDept.do','/user/listDeptView.do');" class="commonbtn">保存</a>
			<a href="javascript:void(0)" onclick="openUrl('/user/listDeptView.do');" class="commonbtn">返回</a>
		</div>
	</form>
</div>
<script type="text/javascript">
	$(function(){
		$('#parentDept').combotree({
		    url: '/user/getDeptTree.do'
		});
	});
</script>
</body>
</html>
